import { createApp } from 'vue';
import App from './App.vue';
import '@/style/config.scss';
import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/dark/css-vars.css';
import './style/dark/css-vars.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import plugins from './plugins';
import router from './router';
import { componentIcon } from './utils/element-plus';
import { createPinia } from 'pinia';
import videoPlay from 'vue3-video-play';
import 'vue3-video-play/dist/style.css';
import { windowDrag } from './directive/drop';

const pinia = createPinia();


const app = createApp(App);
app.use(ElementPlus, { locale: zhCn });
app.use(videoPlay);
app.use(router);
app.use(pinia);
app.use(plugins);
app.directive('windowDrag', windowDrag);
componentIcon(app);
app.mount('#app');
